const Koa = require("koa") ,
    KoaBodyParser = require("../node_modules/koa-bodyparser/index") 

const app = new Koa()

app.use( KoaBodyParser() )

app.use( async function( ctx , next ) {
    console.log( ctx.request )
    console.log( ctx.request.body ) 
    console.log( ctx.request.rawBody ) 
    next() 
    ctx.body = "x"
})

app.listen( 9002 )